<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<c:if test="${not empty city}">
<div class="panel panel-default" >
    <div class="container-fluid">
        <div class="panel-body " >
            <form:form class="form-horizontal" id="cityForm" action="${pageContext.request.contextPath}/destination/city/${city.regionId}" method="post" modelAttribute="city">
            <div class="row">
                <div class="form-group">
                    <div class="col-md-2">
                        <h5>Naam</h5>
                    </div>
                    <div class="col-md-2">
                        <form:input class="form-control" type='text' path='name' placeholder="Voer de naam van de stad in"/>                          
                    </div>
                </div>                   
            </div>
            <div class="row">
                <div class="form-group">
                    <div class="col-md-2">
                        <h5>Latitude</h5>
                    </div>
                    <div class="col-md-2">
                        <form:input class="form-control" type='text' path='latitude' placeholder="Latitude"/>                          
                    </div>
                </div>                   
            </div>
            <div class="row">
                <div class="form-group">
                    <div class="col-md-2">
                        <h5>Longitude</h5>
                    </div>
                    <div class="col-md-2">
                        <form:input class="form-control" type='text' path='longitude' placeholder="Longitude"/>                          
                    </div>
                </div>                   
            </div>
            <input class="btn" id="submit" name="submit" type="submit" value="Voeg toe"/>
            </form:form>
        </div>
    </div>
</div>
</c:if>
<c:if test="${empty city}">
    Selecteer eerst een regio
</c:if>